package com.ruoyi.statisticalCenter.utils;

import java.math.BigDecimal;
import java.math.RoundingMode;

public class BigDecimalUtils {

    public static BigDecimal roundBigDecimal(BigDecimal value, int scale) {
        if (value != null) {
            return value.setScale(scale, RoundingMode.HALF_UP);
        } else {
            return null; // 或者根据业务需求返回0或者其他合理的默认值
        }
    }


}
